package com.hunter2.standard.entity;

import java.util.Date;

public class CvComment {
	private Integer id;

	private Date createTime;

	private Date updateTime;

	private Integer candidateid;

	private Integer processStage;

	private String info;

	private Integer flag;

	private String commentInfo;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getCandidateid() {
		return candidateid;
	}

	public void setCandidateid(Integer candidateid) {
		this.candidateid = candidateid;
	}

	public Integer getProcessStage() {
		return processStage;
	}

	public void setProcessStage(Integer processStage) {
		this.processStage = processStage;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info == null ? null : info.trim();
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getCommentInfo() {
		return commentInfo;
	}

	public void setCommentInfo(String commentInfo) {
		this.commentInfo = commentInfo == null ? null : commentInfo.trim();
	}

	public String write2Line(CvComment comment) { 
		
		// 8
		String line = "\\N" + "\t" + "\\N" + "\t" + "\\N" + "\t" + comment.getCandidateid() + "\t" + "\\N" + "\t"
				+ comment.getInfo() + "\t" + comment.getCommentInfo() + "\t" + "1" + "\t";
		
		return line;
	}

	@Override
	public String toString() {
		return "CvComment [id=" + id + ", createTime=" + createTime + ", updateTime=" + updateTime + ", candidateid="
				+ candidateid + ", processStage=" + processStage + ", info=" + info + ", flag=" + flag
				+ ", commentInfo=" + commentInfo + "]";
	}
}